package com.css.zfzx.fxpg.modules.picture.repository.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author leon
 * @date 2020-11-17
 */
@Data
@Entity
@Table(name = "fx_picture")
public class FxPictureEntity implements Serializable {

    /**
     * 主键id
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 省
     */
    @Column(name = "province")
    private String province;

    /**
     * 市
     */
    @Column(name = "city")
    private String city;

    /**
     * 区
     */
    @Column(name = "area")
    private String area;

    /**
     * 图片名称
     */
    @Column(name = "picture_name")
    private String pictureName;
    /**
     * 图片全称
     */
    @Column(name = "attch_name")
    private String attchName;
    /**
     * 修改人
     */
    @Column(name = "update_user")
    private String updateUser;
    /**
     * 附件ID
     */
    @Column(name = "attach_id")
    private String attachId;
    /**
     * 分区标识
     */
    @Column(name = "partition_flag")
    private String partitionFlag;
    /**
     * 是否有效,0:无效,1:有效
     */
    @Column(name = "is_valid")
    private String isValid;
    /**
     * 图片描述
     */
    @Column(name = "picture_description")
    private String pictureDescription;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 行政区划组合编码+探槽码
     */
    @Column(name = "object_code")
    private String objectCode;
    /**
     * 创建人
     */
    @Column(name = "create_user")
    private String createUser;

    /**
     * 结果分类：直接经济损失评估结果、人员死亡评估结果、其他
     */
    @Column(name = "type")
    private String type;

}

